package com.leo.controller;

import com.leo.service.IOrderService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName EventTestController
 * @Description
 * @Author wangss
 * @date 2020.09.20 20:30
 * @Version 1.0
 */
@RestController
@RequestMapping("/event")
public class EventTestController {

    @Resource
    private IOrderService orderService;

    @RequestMapping("/createOrder")
    public void createOrder() throws InterruptedException {
        orderService.createOrder();
    }
}
